home *** CD-ROM | disk | FTP | other *** search
/ Photodex - Picture Factory / Photodex Picture Factory 1.iso / dinst.bat < prev    next >
DOS Batch File  |  1993-10-30  |  4KB  |  128 lines

  1. @echo off
  2.  
  3. if "%1" == "c:" goto c2
  4. if "%1" == "d:" goto c2
  5. if "%1" == "e:" goto c2
  6. if "%1" == "f:" goto c2
  7. if "%1" == "g:" goto c2
  8. if "%1" == "h:" goto c2
  9. if "%1" == "i:" goto c2
  10. if "%1" == "j:" goto c2
  11. if "%1" == "k:" goto c2
  12. if "%1" == "l:" goto c2
  13. if "%1" == "m:" goto c2
  14. if "%1" == "n:" goto c2
  15. if "%1" == "o:" goto c2
  16. if "%1" == "p:" goto c2
  17. if "%1" == "q:" goto c2
  18. if "%1" == "r:" goto c2
  19. if "%1" == "s:" goto c2
  20. if "%1" == "t:" goto c2
  21. if "%1" == "u:" goto c2
  22. if "%1" == "v:" goto c2
  23. if "%1" == "w:" goto c2
  24. if "%1" == "x:" goto c2
  25. if "%1" == "y:" goto c2
  26. if "%1" == "z:" goto c2
  27. if "%1" == "C:" goto c2
  28. if "%1" == "D:" goto c2
  29. if "%1" == "E:" goto c2
  30. if "%1" == "F:" goto c2
  31. if "%1" == "G:" goto c2
  32. if "%1" == "H:" goto c2
  33. if "%1" == "I:" goto c2
  34. if "%1" == "J:" goto c2
  35. if "%1" == "K:" goto c2
  36. if "%1" == "L:" goto c2
  37. if "%1" == "M:" goto c2
  38. if "%1" == "N:" goto c2
  39. if "%1" == "O:" goto c2
  40. if "%1" == "P:" goto c2
  41. if "%1" == "Q:" goto c2
  42. if "%1" == "R:" goto c2
  43. if "%1" == "S:" goto c2
  44. if "%1" == "T:" goto c2
  45. if "%1" == "U:" goto c2
  46. if "%1" == "V:" goto c2
  47. if "%1" == "W:" goto c2
  48. if "%1" == "X:" goto c2
  49. if "%1" == "Y:" goto c2
  50. if "%1" == "Z:" goto c2
  51.  
  52. echo ║ ──────────────────────────────────────────────────────────────────
  53. echo ║
  54. echo ║  You must specify a destination drive to install to.
  55. echo ║  For example, type:
  56. echo ║
  57. echo ║     DINST C:
  58. echo ║
  59. echo ║  Files will be copied to the path \PFACTORY on the destination drive.
  60. echo ║  For example, C:\PFACTORY will be created to hold the installed files.
  61. echo ║
  62. echo ║ ──────────────────────────────────────────────────────────────────
  63. goto end
  64.  
  65. :c2
  66.  
  67. cls
  68. echo ║ ──────────────────────────────────────────────────────────────────
  69. echo ║
  70. echo ║  Welcome to the Picture Factory for MS-DOS installation .BAT file.
  71. echo ║
  72. echo ║  Installing Picture Factory will create the directory %1\PFACTORY on your
  73. echo ║  %1 drive, and then will copy Picture Factory files into %1\PFACTORY.
  74. echo ║
  75. echo ║ ──────────────────────────────────────────────────────────────────
  76. echo ║
  77. echo ║  If this is not what you want to do, press Ctrl-C now to return to
  78. echo ║  the MS-DOS prompt.  To continue, press «Enter».
  79. echo ║
  80. echo ║ ──────────────────────────────────────────────────────────────────
  81. pause
  82.  
  83. if EXIST %1\PFACTORY\prn goto :noCreate
  84. if EXIST %1\PFACTORY\lpt1 goto :noCreate
  85. if EXIST %1\PFACTORY\lpt2 goto :noCreate
  86. if EXIST %1\PFACTORY\lpt3 goto :noCreate
  87. if EXIST %1\PFACTORY\com1 goto :noCreate
  88. if EXIST %1\PFACTORY\com2 goto :noCreate
  89. if EXIST %1\PFACTORY\photodos.exe goto :noCreate
  90. if EXIST %1\PFACTORY\system.cfg goto :noCreate
  91.  
  92. md %1\PFACTORY
  93.  
  94. :noCreate
  95.  
  96. echo ║ ──────────────────────────────────────────────────────────────────
  97. echo ║
  98. echo ║  Copying PHOTODOS.EXE to %1\PFACTORY...
  99. copy photodos.exe %1\PFACTORY > nul
  100. echo ║  Copying OPEN256.BMP  to %1\PFACTORY...
  101. copy open256.bmp %1\PFACTORY > nul
  102. echo ║  Copying SYSTEM.CFG   to %1\PFACTORY...
  103. copy system.cfg %1\PFACTORY > nul
  104. echo ║  Copying SYSTEM.DAT   to %1\PFACTORY...
  105. copy system.dat %1\PFACTORY > nul
  106. echo ║  Copying README.TXT   to %1\PFACTORY...
  107. copy readme.txt %1\PFACTORY > nul
  108. echo ║  Copying 00000002.DAT to %1\PFACTORY...
  109. copy 00000002.DAT %1\PFACTORY > nul
  110. %1
  111. cd \PFACTORY
  112.  
  113. echo ║
  114. echo ║ ──────────────────────────────────────────────────────────────────
  115. echo ║
  116. echo ║  All files have been copied to %1\PFACTORY and are ready for use.
  117. echo ║
  118. echo ║ ──────────────────────────────────────────────────────────────────
  119. echo ║
  120. echo ║  You may now type PHOTODOS to use Picture Factory.
  121. echo ║
  122. echo ║    For example, type:
  123. echo ║       PHOTODOS  «Enter»
  124. echo ║
  125. echo ║  Enjoy!
  126.  
  127. :end
  128.